package org.ring.rpc;

import java.lang.reflect.Method;

/**
 * @since 2024-10-26 15:41
 */
public class Invocation {

    private String interfaceName;
    private String methodName;
    private String paramDescriptor;
    private Object[] args;

    public Invocation(){

    }
    public Invocation(String interfaceName,Method method){

        this.interfaceName = interfaceName;
        this.methodName = method.getName();
       // this.paramDescriptor = ServiceRepository.get

    }

    public String getInterfaceName() {
        return interfaceName;
    }

    public String getMethodName() {
        return methodName;
    }

    public String getParamDescriptor() {
        return paramDescriptor;
    }

    public void setInterfaceName(String interfaceName) {
        this.interfaceName = interfaceName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public void setParamDescriptor(String paramDescriptor) {
        this.paramDescriptor = paramDescriptor;
    }

    public Object[] getArgs() {
        return args;
    }

    public void setArgs(Object[] args) {
        this.args = args;
    }
}
